puzzle (someone) out

Translations
разгадать (кого-то), понять (кого-то)
It took me a while to puzzle her out.
Мне понадобилось время, чтобы разгадать её.
Definitions
To figure out or understand someone’s thoughts, motives, or behavior, especially when they are confusing or mysterious.